package ar.edu.utn.frsf.cidisi.upcolbpip.upgen;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;

import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.emf.ecore.resource.ResourceSet;
import org.eclipse.emf.ecore.resource.impl.ResourceSetImpl;

import ar.edu.utn.frsf.cidisi.upcolbpip.UPColBPIPModel;


public class WriteFile {

	FileWriter fichero;
    PrintWriter pw = null;

    WriteFile()  {
	    try {
			fichero = new FileWriter("protocols.txt");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
        pw = new PrintWriter(fichero);
    }
    
	
	public void addStringFile(String cadena) {
		pw.println(cadena);
	}
	
	public void cerrarArchivo()  {
		try {
			fichero.close();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
}
